#include<bits/stdc++.h>
using namespace std;
int m,a[100010],b[100010],ans,cnt=1;
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>m;
    for(int i=1;i<=m;++i)
    {
        cin>>a[i];
    }
    sort(a+1,a+1+m);
    b[cnt]=1;
    for(int i=2;i<=m;++i)
    {
        if(a[i-1]==a[i])
        {
            b[cnt]++;
        }
        else
        {
            cnt++;
            b[cnt]++;
        }
    }
    ans=b[1];
    for(int i=2;i<=cnt;++i)
    {
        if(b[i]>ans)
        {
            ans=0;
        }
        else
        {
            ans-=b[i];
        }
        ans+=b[i];
    }
    cout<<ans<<endl;
    return 0;
}
